<div class="clientes form">

	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php echo __('Novo Cliente'); ?></h1>
			</div>
		</div>
	</div>



	<div class="row">
		<div class="col-md-3">
			<div class="actions">
				<div class="panel panel-default">
					<div class="panel-heading">Actions</div>
						<div class="panel-body">
							<ul class="nav nav-pills nav-stacked">
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp;&nbsp;Listar Clientes'), array('action' => 'index'), array('escape' => false)); ?></li>
								<li><?php //echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp;&nbsp;List Tipo Clientes'), array('controller' => 'tipo_clientes', 'action' => 'index'), array('escape' => false)); ?> </li>
								<li><?php //echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;New Tipo Cliente'), array('controller' => 'tipo_clientes', 'action' => 'add'), array('escape' => false)); ?> </li>
								<li><?php //echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp;&nbsp;List Enderecos'), array('controller' => 'enderecos', 'action' => 'index'), array('escape' => false)); ?> </li>
								<li><?php //echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;New Endereco'), array('controller' => 'enderecos', 'action' => 'add'), array('escape' => false)); ?> </li>
								<li><?php //echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp;&nbsp;List Estado Civils'), array('controller' => 'estado_civils', 'action' => 'index'), array('escape' => false)); ?> </li>
								<li><?php //echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;New Estado Civil'), array('controller' => 'estado_civils', 'action' => 'add'), array('escape' => false)); ?> </li>
								<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp;&nbsp;Listar Pedidos'), array('controller' => 'pedidos', 'action' => 'index'), array('escape' => false)); ?> </li>
								<li><?php //echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;Novo Pedido'), array('controller' => 'pedidos', 'action' => 'add'), array('escape' => false)); ?> </li>
							</ul>
						</div>
					</div>
				</div>			
		</div><!-- end col md 3 -->
		<div class="col-md-9">
			<?php echo $this->Form->create('Cliente', array('role' => 'form')); ?>

				<div class="panel panel-default">
					<div class="panel-body">
						<div class="form-group">
							<?php echo $this->Form->input('nome', array('class' => 'form-control', 'placeholder' => 'Nome'));?>
						</div>
						
						<div class="row">
							<div class="form-group col-md-4">
								<?php echo $this->Form->input('cpf', array('label' => 'CPF', 'class' => 'form-control', 'placeholder' => 'Cpf'));?>
							</div>
							<div class="form-group col-md-4">
								<?php echo $this->Form->input('rg', array('label' => 'RG', 'class' => 'form-control', 'placeholder' => 'Rg'));?>
							</div>
							<div class="form-group col-md-4">
								<?php echo $this->Form->label('data_nasc', 'Data de Nascimento');?>
								<?php echo $this->Form->text('data_nasc', array('type' => 'date', 'label' => 'Data de Nascimento', 'dateFormat' => 'DMY', 'minYear' => date(1900), 'maxYear' => date('Y'),  'class' => 'form-control col-sm-2', 'placeholder' => 'Data Nasc'));?>
							</div>
						</div>
						<div class="row">
							<div class="form-group col-md-6">
								<?php echo $this->Form->input('email', array('class' => 'form-control', 'placeholder' => 'Email'));?>
							</div>
							<div class="form-group  col-md-3">
								<?php echo $this->Form->input('sexo', array('options' => array('Masculino' => 'Masculino', 'Feminino' => 'Feminino'), 'class' => 'form-control', 'placeholder' => 'Sexo'));?>
							</div>
							<div class="form-group col-md-3">
								<?php echo $this->Form->input('estado_civil_id', array('class' => 'form-control', 'placeholder' => 'Estado Civil Id'));?>
							</div>
							
						</div>
						<div class="row">
							<div class="form-group col-md-4">
								<?php echo $this->Form->input('telefone', array('class' => 'form-control', 'placeholder' => 'Telefone'));?>
							</div>
							<div class="form-group col-md-4">
								<?php echo $this->Form->input('celular', array('class' => 'form-control', 'placeholder' => 'Celular'));?>
								<?php echo $this->Form->input('status', array('type' => 'hidden', 'class' => 'form-control', 'placeholder' => 'Status'));?>
							</div>
							<div class="form-group col-md-4">
								<?php echo $this->Form->input('tipo_cliente_id', array('class' => 'form-control', 'placeholder' => 'Tipo Cliente Id'));?>
							</div>
							
						</div>
					</div>
				</div>
				
				<!-- Endereco -->
				<div class="panel panel-default">
					<div class="panel-body">
					<h3>Endereco</h3>
						<div class="form-group">
							<?php echo $this->Form->input('Cliente.endereco_id', array('type' => 'hidden', 'class' => 'form-control', 'placeholder' => 'endereco_id'));?>
						</div>
						<div class="row">
							<div class="form-group col-md-10">
								<?php echo $this->Form->input('Endereco.rua', array('class' => 'form-control', 'placeholder' => 'Rua'));?>
							</div>
							<div class="form-group col-md-2">
								<?php echo $this->Form->input('Endereco.numero', array('class' => 'form-control', 'placeholder' => 'Numero'));?>
							</div>
						</div>
						<div class="row">
							<div class="form-group col-md-9">
								<?php echo $this->Form->input('Endereco.bairro', array('class' => 'form-control', 'placeholder' => 'Bairro'));?>
							</div>
							<div class="form-group col-md-3">
								<?php echo $this->Form->input('Endereco.cep', array('class' => 'form-control', 'placeholder' => 'CEP'));?>
							</div>
						</div>
						<div class="row">
							<div class="form-group col-md-6">
								<?php echo $this->Form->input('Endereco.complemento', array('class' => 'form-control', 'placeholder' => 'Complemento'));?>
							</div>
							<div class="form-group col-md-6">
								<?php echo $this->Form->input('Endereco.cidade_id', array('class' => 'form-control', 'placeholder' => 'Cidade'));?>
							</div>
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<?php echo $this->Form->submit(__('Submit'), array('class' => 'btn btn-default')); ?>
				</div>

			<?php echo $this->Form->end() ?>

		</div><!-- end col md 12 -->
	</div><!-- end row -->
</div>
